import { CarrierItem, } from './carrier';
import { CustomerItem, } from './customer';
import { GoodsItem } from './goods';
import { SupplierItem } from './supplier';
import { DictItem } from "/@/api/admin/dict";
import { UserInfoModel } from "/@/api/sys/user";

export interface BillItem {
  ID: number,
  ioStatus: number;
  ioType: number;
  code: string,
  name: string;
  workType: number;
  orderCode: string;
  supplierId: number;
  customerId: number;
  uid: number;
  euid: number;
  workAt: string;
  memo: string;
  supplier: SupplierItem;
  customer: CustomerItem;
  ioStatusDict: DictItem;
  ioTypeDict: DictItem;
  CreatedAt: string;
  UpdatedAt: string;
  creator: UserInfoModel;
  goodsList: BillGoodsItem[];
  logisticsList: BillLogisticsItem[];
}

export interface BillGoodsItem {
  ID: number;
  billId: number;
  wid: number;
  goodsId: number;
  PlanQty: number;
  qty: number;
  price: number;
  mark: number;
  pandQty: number;
  dictId: number;
  isGift: number;
  srcWid: number;
  destWid: number;
  memo: string;
  goods: GoodsItem;
}

export interface BillLogisticsItem {
  ID: number;
  billId: number;
  cid: number;
  sendAt: string;
  waybill: string;
  memo: string;
  carrier: CarrierItem;
}

export interface WmsInventoryItem {
  ID: number;
  billId: number;
  valid: string;
  wid: number;
  goodsId: number;
  qty: number;
  price: number;
  mark: number;
  isGift: number;
  memo: string;
  bill: BillItem;
}
